package com.infolab.aims.domain.asset;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.infolab.aims.domain.Location;

@Embeddable
public class AssetComponentPK implements Serializable {
	
	@ManyToOne
	@JoinColumn(name="assetModelId")
	private AssetModel assetModel;
	
	@ManyToOne
	@JoinColumn(name="locationId")
	private Location location;
	
	@Column(length=10)
	private String companyCode;
	
	public AssetComponentPK() {
	
	}
	
	public AssetComponentPK(AssetModel assetModel,Location location,String companyCode) {
		this.assetModel=assetModel;
		this.location=location;
		this.companyCode=companyCode;
	}

	public AssetModel getAssetModel() {
		return assetModel;
	}

	public void setAssetModel(AssetModel assetModel) {
		this.assetModel = assetModel;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}
	
	
	
}
